package com.heatingcharge.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
public class HeatCompanyParam {
    private Integer id;

    @NotBlank(message = "热力公司名称不可以为空")
    @Length(max = 32, min = 2, message = "热力公司名称长度需要在2-32个字之间")
    private String name;
    
    @NotNull(message = "父级ID不可以为空")
    private Integer parentId;

    @Length(max = 150, message = "地址的长度需要在120个字以内")
    private String addr;
}
